package no.saiboten.drumcalendar.user;

import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

@Component
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS, value = "request")
public class LoggedInRequestHolder {
	private boolean isLoggedIn;

	private CalendarUser calendarUser;

	public CalendarUser getCalendarUser() {
		return calendarUser;
	}

	public void setCalendarUser(CalendarUser calendarUser) {
		this.calendarUser = calendarUser;
	}

	public LoggedInRequestHolder() {
		isLoggedIn = false;
	}

	public boolean isLoggedIn() {
		return isLoggedIn;
	}

	public void setLoggedIn(boolean isLoggedIn) {
		this.isLoggedIn = isLoggedIn;
	}

}
